package rmi;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

import DataBase.UserData;

public class RMIClient {


	public RMIInterface connectToRemote() {
		RMIInterface client = null;
		try {
			client = (RMIInterface) Naming
					.lookup("rmi://localhost:3333/server");
		} catch (MalformedURLException e) {
			e.printStackTrace();
		} catch (RemoteException e) {
			e.printStackTrace();
		} catch (NotBoundException e) {
			e.printStackTrace();
		}
		return client;
	}
}